package com.situ.boot.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "taxdetail", schema = "brcc", catalog = "")
public class TaxdetailEntity {
    private int id;
    private Integer duid;
    private Integer uid;
    private Integer num;
    private Timestamp createTime;
    private Double cuttaxmoney;
    private Double addtaxmoney;
    private Double taxmoney;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "duid")
    public Integer getDuid() {
        return duid;
    }

    public void setDuid(Integer duid) {
        this.duid = duid;
    }

    @Basic
    @Column(name = "uid")
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "num")
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "cuttaxmoney")
    public Double getCuttaxmoney() {
        return cuttaxmoney;
    }

    public void setCuttaxmoney(Double cuttaxmoney) {
        this.cuttaxmoney = cuttaxmoney;
    }

    @Basic
    @Column(name = "addtaxmoney")
    public Double getAddtaxmoney() {
        return addtaxmoney;
    }

    public void setAddtaxmoney(Double addtaxmoney) {
        this.addtaxmoney = addtaxmoney;
    }

    @Basic
    @Column(name = "taxmoney")
    public Double getTaxmoney() {
        return taxmoney;
    }

    public void setTaxmoney(Double taxmoney) {
        this.taxmoney = taxmoney;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TaxdetailEntity that = (TaxdetailEntity) o;
        return id == that.id &&
                Objects.equals(duid, that.duid) &&
                Objects.equals(uid, that.uid) &&
                Objects.equals(num, that.num) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(cuttaxmoney, that.cuttaxmoney) &&
                Objects.equals(addtaxmoney, that.addtaxmoney) &&
                Objects.equals(taxmoney, that.taxmoney);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, duid, uid, num, createTime, cuttaxmoney, addtaxmoney, taxmoney);
    }
}
